import request from '@/utils/request'

// 查询病人列表
export function getList(data) {
	return request({
		url: '/hospPatient/list',
		method: 'post',
		data: data
	})
}
// 新增或者编辑病人
export function addOrEditData(data) {
	return request({
		url: '/hospPatient/edit',
		method: 'post',
		data: data
	})
}

// 删除病人
export function delData(data) {
	return request({
		url: '/hospPatient/del',
		method: 'post',
		data: data
	})
}
//绑定设备
export function bindDevice(data) {
	return request({
		url: '/hospPatientDevice/bindDevice',
		method: 'post',
		data: data
	})
}
//解绑设备
export function unBindDevice(data) {
	return request({
		url: '/hospPatientDevice/unBindDevice',
		method: 'post',
		data: data
	})
}
//查询绑定设备
export function getBindDevice(data) {
	return request({
		url: '/hospPatientDevice/list',
		method: 'post',
		data: data
	})
}
//解绑网关
export function unBindGateway(data) {
	return request({
		url: '/hospPatient/unBindDevice',
		method: 'post',
		data: data
	})
}